<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<table id="empGrid" class="easyui-datagrid" 
	style="width: 700px; height: 250px"
	data-options="idField:'id',onClickRow:onGridClick,
	fit:true,singleSelect:true,collapsible:true,url:'',method:'post',toolbar:'#tb'">
	<thead>
		<tr>
			<th data-options="field:'id',width:250">id</th>
			<th data-options="field:'name',width:100">姓名</th>
			<th data-options="field:'age',width:100">年龄</th>
			<th data-options="field:'birthday',width:120">生日</th>
			<th data-options="field:'sex',width:100">性别</th>
			<th data-options="field:'hobby',width:100">爱好</th>
		</tr>
	</thead>
</table>
<div id="tb" style="padding: 5px; height: auto">
	<div style="margin-bottom: 5px">
		<a href="javascript:return void(0);" onclick="addEmp();" class="easyui-linkbutton" iconCls="icon-add" plain="true">添加</a>
		<a href="javascript:return void(0);" onclick="saveEmp();" class="easyui-linkbutton" iconCls="icon-save" plain="true">保存</a>
		<a href="javascript:return void(0);" onclick="delEmp();" class="easyui-linkbutton" iconCls="icon-remove" plain="true">删除</a>
	</div>
</div>